package com.neu.demo01.controller;

import com.neu.demo01.po.UserInfo;
import com.neu.demo01.service.UserInfoService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserInfoService userInfoService;
    @RequestMapping("/findAll")
    public List<UserInfo> findAll(){
        return userInfoService.findAll();
    }
}
